package org.springblade.pm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;

@Data
@TableName("blade_pm_file")
@EqualsAndHashCode(callSuper = true)
public class File extends BaseEntity{

	@TableId(value = "id", type = IdType.AUTO)
	@ApiModelProperty(value = "主键id")
	private Integer id;

	@ApiModelProperty(value = "文件名称")
	private String originalName;

	@ApiModelProperty(value = "储存名称")
	private String name;

	@ApiModelProperty(value = "文件大小")
	private Integer imageSize;

	@ApiModelProperty(value = "后缀名类型")
	private String type;

	@ApiModelProperty(value = "储存路径")
	private String path;

	@ApiModelProperty(value = "父级id")
	private Integer parentId;

	@ApiModelProperty(value = "文件parent_id 类型(active or plan)")
	private String moduleType;
}
